@extends('ClubLeader/default.app')

@section('title','ResetPassword')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <header class="list-header">
                    <section>修改负责人密码</section>
                </header>
                <div class="create">
                    {!! Form::open(['route' => 'updatePassword']) !!}
                    {{ csrf_field() }}
                    <input type="hidden" value="{{ session()->get('leader_id') }}" name="leader_id">
                    <div class="create-list{{ $errors->has('password')?'':'' }}">
                        {!! Form::label('password','旧密码')!!}
                        {!! Form::password('password',null)!!}
                        @if ($errors->has('password'))
                            <span class="help-block">
                                <strong>{{ $errors->first('password') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('newPassword')?'':'' }}">
                        {!! Form::label('newPassword','新密码') !!}
                        {!! Form::password('newPassword',null) !!}
                            @if ($errors->has('newPassword'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('newPassword') }}</strong>
                                </span>
                            @endif
                    </div>
                    <div class="create-list">
                        {!! Form::label('passwordAgain','再次输入新密码')!!}
                        {!! Form::password('passwordAgain') !!}
                            @if ($errors->has('passwordAgain'))
                                <div class="help-block">
                                    <strong>{{ $errors->first('passwordAgain') }}</strong>
                                </div>
                            @endif
                    </div>
                    <div class="create-btn">
                        {!! Form::reset('重置'); !!}
                        {!! Form::submit('添加'); !!}
                    </div>

                    {!! Form::close() !!}
                    <div id="debug"></div>
                </div>
            </div>
        </div>
    </div>
@endsection